package Transformers;

import org.uqbar.arena.bindings.Transformer;



public class BooleanToStringTransformer implements Transformer<Boolean, String> {

	@Override
	public Boolean viewToModel(String valueFromView) {
		return (valueFromView.equals("Planificada"));
	}

	@Override
	public String modelToView(Boolean valueFromModel) {
		if (valueFromModel) {
			return "Planificada";
		} else {
			return "No Planificada";
		}
	}

	@Override
	public Class<Boolean> getModelType() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Class<String> getViewType() {
		// TODO Auto-generated method stub
		return null;
	}

}
